package org.example.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;

@Data
@TableName("card_info")
public class CardInfo {
    @TableId(type = IdType.AUTO)
    private Long cardId;

    private String curId;
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private LocalDate openDate;
    private BigDecimal openMoney;
    private BigDecimal balance;
    private String pass;
    private Integer isReportLoss;

    private Long customerId;
    private Long savingId;

    @TableField(exist = false)
    private String customerName;

    @TableField(exist = false)
    private String isReportLoss1;
}